package com.ybb.job.service;

import com.ybb.job.mapper.JobLockMapper;
import com.ybb.job.service.JobLockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JobLockServiceImp implements JobLockService {

    @Autowired
    private JobLockMapper jobLockMapper;

    @Override
    public Integer getLock(String nodeId ,String type) {
        return jobLockMapper.getLock(nodeId, type);
    }
}
